Peer-graded Assignment: R Markdown Presentation & Plotly

jacethedatascientist

August 14, 2019

Overview

In this project, we will create a web page presentation using R Markdown that features a plot created with Plotly. We’ll host our webpage on either GitHub Pages, RPubs, or NeoCities.

Our webpage must contain the date that we created the document, and it must contain a plot created with Plotly.

Preparation

library(plotly)
library(dplyr)
library(Ecdat)
data(Icecream)
head(Icecream)
##    cons income price temp
## 1 0.386     78 0.270   41
## 2 0.374     79 0.282   56
## 3 0.393     81 0.277   63
## 4 0.425     80 0.280   68
## 5 0.406     76 0.272   69
## 6 0.344     78 0.262   65

Data Format


Summary The Ice cream dataset (Icecream) is a four-weekly observations from March 18, 1951 to July 7, 1953.

It’s consists of 30 observations from the United States.

Variables:

Relationship Between the Local Temperature and The Ice Cream Consumption in the US


Based on the graph above, the temperature in the locals’ area is correlated to the amount of their ice cream consumptions.